home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 23 / CU Amiga - Super CD-ROM 23 (June 1998).iso / CUCD / Programming / OUI / include / gadgets / rcs / radio.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  2.3 KB  |  140 lines

  1. head    1.3;
  2. access;
  3. symbols;
  4. locks
  5.     dlorre:1.3; strict;
  6. comment    @ * @;
  7.  
  8.  
  9. 1.3
  10. date    97.09.17.08.17.06;    author dlorre;    state Exp;
  11. branches;
  12. next    1.2;
  13.  
  14. 1.2
  15. date    97.07.14.04.27.19;    author dlorre;    state Exp;
  16. branches;
  17. next    1.1;
  18.  
  19. 1.1
  20. date    96.08.22.02.06.07;    author dlorre;    state Exp;
  21. branches;
  22. next    ;
  23.  
  24.  
  25. desc
  26. @Oui.lib -- Object User Interface
  27. Projet créé en 1994
  28. Auteur: Dominique Lorre
  29. @
  30.  
  31.  
  32. 1.3
  33. log
  34. @*** empty log message ***
  35. @
  36. text
  37. @// $Id: radio.h 1.2 1997/07/14 04:27:19 dlorre Exp dlorre $
  38. #ifndef CLASS_RADIO_H
  39. #define CLASS_RADIO_H
  40.  
  41. #ifndef EXEC_TYPES_H
  42. #include <exec/types.h>
  43. #endif
  44.  
  45. #if !defined( UTILITY_TAGITEM_H )
  46. #include <utility/tagitem.h>
  47. #endif
  48.  
  49. #ifndef CLASS_WINDOW_H
  50. class window ;
  51. #endif
  52.  
  53. #ifndef CLASS_GADGETLIST_H
  54. class gadgetlist ;
  55. #endif
  56.  
  57. #ifndef CLASS_GAGDET_H
  58. #include "gadgets/gadget.h"
  59. #endif
  60.  
  61.  
  62. #define ORADIO_Base         (TAG_USER+100)
  63. #define ORADIO_Active       (ORADIO_Base+0)
  64. #define ORADIO_Flags        (ORADIO_Base+1)
  65. #define ORADIO_Spacing      (ORADIO_Base+2)
  66. #define ORADIO_Text         (ORADIO_Base+3)
  67. #define ORADIO_TextArray    (ORADIO_Base+4)
  68.  
  69.  
  70. // ========================================================================
  71. // ==========================  RADIO CLASS ================================
  72. // ========================================================================
  73.  
  74.  
  75. class radio : public gadget
  76. {
  77.     STRPTR *mxlabs ;
  78.     LONG   labsize ;
  79.     LONG    spacing ;
  80. public:
  81.     LONG cursel ;
  82.     STRPTR curstring ;
  83.     radio(gadgetlist *gl,
  84.           void (window::*func)(gadget *, unsigned long, unsigned short),
  85.           TagItem *tags) ;
  86.  
  87.     radio(gadgetlist *gl,
  88.           void (window::*func)(gadget *, unsigned long, unsigned short),
  89.           ULONG tag1, ...) ;
  90.  
  91.     ~radio() ;
  92.     void init(TagItem *tags) ;
  93.     void action(unsigned long, unsigned short) ;
  94.     void keystroke(BOOL shifted) ;
  95. };
  96.  
  97. #endif
  98. @
  99.  
  100.  
  101. 1.2
  102. log
  103. @*** empty log message ***
  104. @
  105. text
  106. @d1 1
  107. a1 1
  108. // $Id$
  109. d9 4
  110. d25 9
  111. d42 2
  112. a43 1
  113.     int     labsize ;
  114. d45 1
  115. a45 1
  116.     int cursel ;
  117. d49 1
  118. a49 1
  119.           long active, unsigned long flags, long spacing, const char **text) ;
  120. d53 2
  121. a54 1
  122.           long active, unsigned long flags, long spacing, const char *t, ...) ;
  123. d56 1
  124. @
  125.  
  126.  
  127. 1.1
  128. log
  129. @Initial revision
  130. @
  131. text
  132. @d1 1
  133. d35 1
  134. a35 1
  135.           long active, unsigned long flags, long spacing, STRPTR *text) ;
  136. d39 1
  137. a39 1
  138.           long active, unsigned long flags, long spacing, STRPTR t, ...) ;
  139. @
  140.